#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
const int N = 1e5 + 1;
int arr[N];
int temp[N];
void merge_sort(int arr[], int l, int r)
{
	if (l >= r)return;
	int mid = l + r >> 1;
	merge_sort(arr, l, mid), merge_sort(arr, mid + 1, r);
	int i = l, j = mid + 1;
	int k = 0;
	while (i <= mid && j <= r)
	{
		if (arr[i] <= arr[j])
		{
			temp[k++] = arr[i++];
		}
		else
		{
			temp[k++] = arr[j++];
		}
	}
	while (i <= mid)temp[k++] = arr[i++];
	while (j <= r)temp[k++] = arr[j++];
	for (i = l, j = 0; i <= r; i++, j++)
		arr[i] = temp[j];
}
int main()
{
	int n = 0;
	scanf("%d", &n);
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &arr[i]);
	}
	merge_sort(arr, 0, n - 1);
	for (int i = 0; i < n; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}